<template>
  <div>
    <h3>孙子组件</h3>
    <p>{{ mky }}</p>
  </div>
</template>

<script>
import { inject } from 'vue'
export default {
  setup () {
    // 接受注入的数据
    const mky = inject('rmb')
    mky.value += 6e6
    return { mky }
  }
}
</script>

<style lang="scss" scoped>

</style>
